package com.jrapider.manager.data.om;

import com.baomidou.mybatisplus.annotation.*;
import com.jrapider.CommonConstants;
import com.jrapider.compent.dict.DictTranslater;
import lombok.Getter;
import lombok.Setter;

@TableName("sys_user")
@Getter
@Setter
public class SysUser extends _SysUser {
    @TableField(exist = false)
    private String link;

    public String getLinkCN() {
        return DictTranslater.getNote(CommonConstants.DICT_LINK, link);
    }

    public String getStateCN() {
        return DictTranslater.getNote(CommonConstants.DICT_TF, state);
    }

    public String getDeptCodeCN() {
        return DictTranslater.getNote("dept", deptCode);
    }
}
